<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>回调函数</title>
</head>
<body>
    <script>
        function f1(name){
            console.log("你好",name);
        }

        function f2(name){
            console.log("hello",name)
        }

        function f3(name){
            console.log("沙瓦尼卡",name)
        }

        function ff(fn,name){
            console.log("开始介绍")
            fn(name);
            console.log("介绍结束")
        }

        ff(f1,"jack")
    </script>
</body>
</html>